import types from '../../action/types';
import color from '../../public/widget/color'
const defaultState = {
    theme:color.themeColor
}
export default function onAction(state = defaultState,action){
    switch (action.type) {
        case types.THEME_CHANGE:
            return {
                ...state,
                theme:action.theme
            }
        default:
            return state;
    }
}